package com.ljq;

public class Sword extends Article {
    public Sword(String id, int CE, String description) {
        super(id, CE, description);
    }

    @Override
    public void useArticle(Article article, Creature targetCreature) {

    }

    @Override
    public void useArticle(Creature enemyCreature) {
        enemyCreature.setHp(enemyCreature.getHp()-this.getCE());
    }
}
